package Dao.entity;

import java.io.Serializable;
import java.util.Date;

public class Result implements Serializable {
    private long id;
    private Date exam_date;
    private Double score;
    private int st_id,sb_id;

    public Result() {
    }
    //查
    public Result(long id, Date exam_date, Double score, int st_id, int sb_id) {
        this.id = id;
        this.exam_date = exam_date;
        this.score = score;
        this.st_id = st_id;
        this.sb_id = sb_id;
    }

    //增加
    public Result(Date exam_date, Double score, int st_id, int sb_id) {
        this.exam_date = exam_date;
        this.score = score;
        this.st_id = st_id;
        this.sb_id = sb_id;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Date getExam_date() {
        return exam_date;
    }

    public void setExam_date(Date exam_date) {
        this.exam_date = exam_date;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public int getSt_id() {
        return st_id;
    }

    public void setSt_id(int st_id) {
        this.st_id = st_id;
    }

    public int getSb_id() {
        return sb_id;
    }

    public void setSb_id(int sb_id) {
        this.sb_id = sb_id;
    }

    @Override
    public String toString() {
        return "学号" + id +
                "考试日期" + exam_date +
                "成绩" + score +
                "学号(外)" + st_id +
                "课程号(外)" + sb_id;
    }
}
